/*
 * Copyright (c) 2014 laidian. All Rights Reserved.
 * 
 * @author yaoyuming
 * 
 * @date 2020/8/27 0027
 */
package com.yao.security.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.hutool.core.lang.Console;

/**
 * Hello测试 测试Security
 * 
 * @author yaoyuming
 * @module 归属项目
 * @date 2020/8/27 0027 16:16
 */
@RestController
@RequestMapping("/hello")
public class HelloController {

    @GetMapping("/say")
    public String say(String something) {

        Console.log("say {}", something);

        return "say " + something + " >>> security...";
    }

    @GetMapping("/test")
    public String test() {

        Console.log("test ");

        return "test  >>> security...";
    }
}